package start;

import java.io.IOException;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.Resource;

public class Main {
    public static void main(String[] args) throws IOException {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath*:META-INF\\beans*.xml");    
        A a = (A) ctx.getBean("aBean");
        B b = (B) ctx.getBean("bBean");
        
        Resource resource =ctx.getResource("META-INF\\beans.xml");
        Resource resource2 =ctx.getResource("file:META-INF\\beans2.xml");
        System.out.println(resource.getDescription());
        System.out.println(resource2.getDescription());
    }
}
